home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windows News 2005 November
/
WNnov2005.iso
/
Windows
/
Indispensables
/
Movie Collection
/
MovieCollection5403.exe
/
{app}
/
web
/
Default
/
films.xsl
< prev
next >
Wrap
Extensible Markup Language
|
2005-05-20
|
5KB
|
133 lines
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="header.xsl"/>
<xsl:output method="html" media-type="text/html; charset=ISO-8859-1"/>
<xsl:template match="/">
<html>
<head>
<title><xsl:value-of select="datapacket/@title"/></title>
<link rel="stylesheet" type="text/css" href="mc.css" />
<script type="text/javascript">
i1=new Image;
i1.src='images/trans_pixel.gif';
i2=new Image;
i2.src='images/check.gif';
</script>
</head>
<body id="idbody">
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<!-- EntΩte -->
<tr><td width="100%">
<xsl:call-template name="template_header" />
</td></tr>
<tr>
<td width="100%">
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr>
<td width="100%" class="gt0deg">
<xsl:if test="not(//datapacket/@php=1)"><a href="disconnect" class="lktoolbar">DΘconnecter</a> | </xsl:if><a href="index" class="lktoolbar">Nouvelle recherche</a> | <a href="mailto: babidyxp@free.fr" class="lktoolbar">Powered by MovieCollection ⌐ Babidyxp</a>
</td>
<td width="100%" class="gt0deg">
<xsl:value-of select="datapacket/@servername"/>
</td>
</tr>
</table>
</td>
</tr>
<!-- Fin EntΩte -->
<tr>
<td width="100%" class="parAction">
<table cellpadding="0" cellspacing="0">
<tr>
<td class="parAction">
<img src="images/i.p.search.gif" />
</td>
<td class="parAction">
RΘsultat de la recherche: <xsl:value-of select="count(//films/film)"/> film(s) trouvΘ(s).
</td>
</tr>
</table>
</td>
</tr>
<tr><td width="100%">
<p style="margin: 10px;" />
<div style="margin-top: 0px; margin-bottom: 0px; margin-right: 20px; margin-left: 20px;" >
<table cellpadding="0" cellspacing="1" border="0" bgcolor="#9F9F9F">
<tr>
<xsl:for-each select="//columns/column">
<td class="gtH" nowrap="1" align="center" style="cursor:hand;">
<xsl:attribute name="title">Trier par [<xsl:value-of select="@caption" />]</xsl:attribute>
<xsl:value-of select="@caption"/>
<span>
<xsl:attribute name="id">h_<xsl:value-of select="@nom" /></xsl:attribute>
</span>
</td>
</xsl:for-each>
</tr>
<xsl:apply-templates select="//films"/>
</table>
</div>
</td></tr>
</table>
</body>
</html>
</xsl:template>
<xsl:template match="//films">
<xsl:for-each select="film">
<tr onmouseover="javascript:style.backgroundColor='#ccccff'" onmouseout="javascript:style.backgroundColor='white'">
<xsl:variable name="v_idx"><xsl:value-of select="@idx"/></xsl:variable>
<xsl:for-each select="@*">
<xsl:choose>
<xsl:when test="name()='idx'">
</xsl:when>
<xsl:when test="name()='nom'">
<td class="gt2" nowrap="1">
<a>
<xsl:attribute name="href">film?idx=<xsl:value-of select="$v_idx"/></xsl:attribute>
<xsl:value-of select="self::node()"/>
</a>
</td>
</xsl:when>
<xsl:when test="((name()='note') or (name()='notevideo') or (name()='noteaudio'))">
<td class="gt2" nowrap="1">
<img>
<xsl:choose>
<xsl:when test="((self::node()>='0') and (self::node()<='5'))">
<xsl:attribute name="src">images/stars<xsl:value-of select="self::node()"/>.gif</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="src">images/stars.gif</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
</img>
</td>
</xsl:when>
<xsl:when test="name()='vu' or name()='film_dispo' or name()='film_reserve'">
<td class="gt2" nowrap="1" align="center">
<xsl:if test="(self::node()='1')">
<img src="images/check.gif" />
</xsl:if>
</td>
</xsl:when>
<xsl:otherwise>
<td class="gt2" nowrap="1"><xsl:value-of select="self::node()"/></td>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</tr>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>